package com.dji.sample.component.oss.model;
/**
 * @author 10587
 * @date 2022/9/28
 */

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yjt
 * @date 2022-09-28
 * @description:
 */
@ConfigurationProperties(prefix = "minio")
@Component
@Data
public class MinIoConfiguration {

    /**
     * The protocol needs to be included at the beginning of the address.
     */
    private String endpoint;

    private String accessKey;

    private String secretKey;

    private String region;

    private Long expire;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Long getExpire() {
        return expire;
    }

    public void setExpire(Long expire) {
        this.expire = expire;
    }
}
